<template>
  <div class="pos_fix">
    <van-search v-model="value" placeholder="搜索商品名称/编号" show-action shape="round" @search="onSearch">
      <div slot="action" @click="onSearch">搜索</div>
    </van-search>
    <!-- <van-search placeholder="" v-model="value" /> -->
  </div>
</template>
<script>
export default {
  data() {
    return {
      value: ''
    }
  },
  methods: {
      onSearch(){
          alert("搜读")
      }
  },
}
</script>
<style scoped>
.pos_fix {
  left: 0;
  top: 0;
  position: fixed;
  height: 40px;
  background: #ffffff;
  z-index: 22;
  width: 100%;
}
</style>
